/*
 * @Author: your name
 * @Date: 2021-01-12 16:20:35
 * @LastEditTime: 2021-01-12 16:23:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \carlist\src\router\loadable.js
 */
import React from "react"
import Loadable from "react-loadable"

// 通过的过场组件
const LoadingComponent = ()=>{
    return (
        <div>正在加载中...loading...</div>
    )
}
export default (loader,loading = LoadingComponent)=>{
    return Loadable({
        loader,
        loading
    })
}